package com.teira.rhrrealstate.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;

import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

@Entity
public class Accion implements Serializable
{
	@Id
	@Length(max=25)
	private String id;
	@NotNull @Length(max=12)
	private String title;
	@NotNull @Length(max=25) @Column(name="vista")
	private String view;
	@NotNull @Length(max=50) @Column(name="image_link")
	private String imageLink;
	@Length(max=50) @Column(name="propagation")
	private String propagation;
	@Length(max=50) @Column(name="controller_id")
	private String controllerId;
	@Length(max=50) @Column(name="rendered")
	private String rendered;
	@ManyToMany(mappedBy="acciones")
	public Set<TipoOperacion> tipoOperaciones; 

	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getView() {
		return view;
	}
	public void setView(String view) {
		this.view = view;
	}
	public String getImageLink() {
		return imageLink;
	}
	public void setImageLink(String imageLink) {
		this.imageLink = imageLink;
	}
	public String getPropagation() {
		return propagation;
	}
	public void setPropagation(String propagation) {
		this.propagation = propagation;
	}
	public String getControllerId() {
		return controllerId;
	}
	public void setControllerId(String controllerId) {
		this.controllerId = controllerId;
	}
	public String getRendered() {
		return rendered;
	}
	public void setRendered(String rendered) {
		this.rendered = rendered;
	}
	public Set<TipoOperacion> getTipoOperaciones() {
		return tipoOperaciones;
	}
	public void setTipoOperaciones(Set<TipoOperacion> tipoOperaciones) {
		this.tipoOperaciones = tipoOperaciones;
	}
	
}
